/* pts05EntityEquipment.h
 *
 * --
 * Copyright (c) 2012, Christophe Huriaux
 * Distributed under the terms of the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * --
 */

#ifndef MCPACKET_pts05_H
#define MCPACKET_pts05_H

#include <string>
#include <iostream>
#include <stdint.h>
#include <vector>
#include <packet/McPacket.h>

class pts05EntityEquipment : public McPacketToServer
{
    int32_t entityId;
    int16_t slot;
    int16_t item;
    int16_t damage;

public:
    pts05EntityEquipment(int32_t entityId, int16_t slot, int16_t item, int16_t damage);
    pts05EntityEquipment();

    void forge(std::ostream& out);
    unsigned int length();

    int32_t getEntityId();
    int16_t getSlot();
    int16_t getItem();
    int16_t getDamage();

    void setEntityId(int32_t entityId);
    void setSlot(int16_t slot);
    void setItem(int16_t item);
    void setDamage(int16_t damage);
};

#endif // MCPACKET_pts05_H
